package com.smiier.skin.net;

import java.util.ArrayList;

import android.content.Context;
import cn.o.app.io.INoProguard;
import cn.o.app.net.NetTask;

import com.smiier.skin.constant.Constant;
import com.smiier.skin.net.SymptomPatientTask.SymptomPatientRequest;
import com.smiier.skin.net.SymptomPatientTask.SymptomPatientResponse;
import com.smiier.skin.util.GlobalSettings;

public class SymptomPatientTask extends
		NetTask<SymptomPatientRequest, SymptomPatientResponse> {

	public static class SymptomPatientRequest extends ORequest {
		public String appname = Constant.APP_NAME;
	}

	public static class SymptomPatientResponse extends
			ArrayList<SymptomPatientItem> implements INoProguard {
	}

	/*
	 * public static class SymptomPatientResponse extends OResponse { public
	 * SymptomPationData Res; }
	 * 
	 * public static class SymptomPationData extends
	 * ArrayList<SymptomPatientItem> implements INoProguard {
	 * 
	 * }
	 */

	public static class SymptomPatientData extends SymptomPatientResponse
			implements INoProguard {
		// public SymptomPatientData Res;
		public ArrayList<SymptomPatientItem> Res;
	}

	public static class SymptomPatientItem implements INoProguard {
		public String Type;
		public ArrayList<SymptomItemInfo> Symptoms;
	}

	public static class SymptomItemInfo implements INoProguard {
		public String Patient_Name;
		public String Patient_Desc;
		public String Doctor_Name;
		public String Doctor_Desc;
		public String Desc;
		public String Url;
		public ArrayList<Medicinal> Medicinal;
		// public String[] Doctor_Uids;
		public ArrayList<Long> Doctor_Uids;
		// public String Dcotor_Uids;
	}

	public static class Medicinal implements INoProguard {
		public String Name;
	}

	@Override
	public void setContext(Context context) {
		super.setContext(context);
		mUrl = GlobalSettings.SERVER_URL + GlobalSettings.SERVER_FIXED_JOIN
				+ "Symptom_Patient.txt";
		mRequestMethod = METHOD_GET;
	}
}
